<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>消息对话框</title>
	<script type="text/javascript">
		var mymessage=confirm('你喜欢我们吗！');
		if(mymessage==true)
		{
			document.write('很明显，你选择了确定');
		}
		else
		{
			document.write('哎，没办法，你还是选择了取消');
		}
	</script>
</head>
<body>
	
</body>
</html>